#ifndef __ALARMTIMER_h_
#define __ALARMTIMER_h_

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>
#ifdef __cplusplus
extern "C"
{
#endif

typedef void (*AlarmTimerCallback)();
typedef void (*TimerHandle)(union sigval v);


void AlarmTimerOnce(AlarmTimerCallback cb, int second);
timer_t  TimerCreate(TimerHandle cb, int microsecond);
int  TimerDelete(timer_t timer);

#ifdef __cplusplus
}
#endif



#endif
